package com.caijin.common.core.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 班级前端展示模型
 *
 * @author Peas
 */
@Data
@ApiModel(value = "Clazz的VO模型", description = "班级列表VO模型")
public class ClazzVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "班级编号，主键，唯一标识，自增")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "班级名称，最多40个字符")
    private String name;

    @ApiModelProperty(value = "学生人数")
    private Integer StudentNumber;

    @ApiModelProperty(value = "邀请码")
    private Long invitationCode;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;
}
